define(["durandal/system", "knockout", "jquery"], function(system, ko, $) {
  var exports = {
    count: ko.observable(10),
    nums: ko.observableArray([]),
    handleChangeNumberCount: function() {
      var count = this.count.peek();
      var newNums = [];
      for (var index = 0; index < count; index++) {
        newNums.push(index);
      }
      this.nums(newNums);
    },
    attached: function(view, parent) {
      this.count(10);
      this.handleChangeNumberCount();
    },
    compositionComplete: function(view) {
      
    }
  };
  return exports;
});
